package com.twotiger.and.bean;

import java.io.Serializable;

import com.twotiger.and.util.StringUtils;

/**
 * Created by victor on 2014/10/15 0015.
 */
// 还款的记录
public class ProjectRepayPlan implements Serializable {
    private static final long serialVersionUID = 1 << 2L;
    private String oughtedTime;// 预期还款时间 yyyyMMddHHmmssSSS
    private String ctime;//
    private String realTime;//
    private String realCapital;//
    private String realInterest;// 逾期还款收益 两位小数
    private String overdueFee;//
    private String remainCapital;//
    private int projectStatus;//
    private String projectStatusName;
    private int projectId;//
    private String projectNid;
    private double projectAmount;//
    private double projectYield;//
    private double projectAwardYield;//
    private int projectPeriod;//
    private int status;
    
    // ----- 2.7版本对应字段  start-----//
    private String projectName; //项目名称
    private String statusName; //状态名称
    private String repaymentTime; //还款时间
    private String capital; //还款本金
    private String interest; //还款收益
    private String completeMark; //已还款标识  1-已还款；0-未还款
    // ----- 2.7版本对应字段  end-----//

    public String getCompleteMark() {
        return completeMark;
    }

    public String getRepaymentTime() {
        return repaymentTime;
    }

    public void setRepaymentTime(String repaymentTime) {
        this.repaymentTime = repaymentTime;
    }

    public void setCompleteMark(String completeMark) {
        this.completeMark = completeMark;
    }

    public int getProjectStatus() {
        return projectStatus;
    }

    public void setProjectStatus(int projectStatus) {
        this.projectStatus = projectStatus;
    }

    public String getProjectStatusName() {
        return projectStatusName;
    }

    public void setProjectStatusName(String projectStatusName) {
        this.projectStatusName = projectStatusName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectNid() {
        return projectNid;
    }

    public void setProjectNid(String projectNid) {
        this.projectNid = projectNid;
    }

    public double getProjectAmount() {
        return projectAmount;
    }

    public void setProjectAmount(double projectAmount) {
        this.projectAmount = projectAmount;
    }

    public double getProjectYield() {
        return projectYield;
    }

    public void setProjectYield(double projectYield) {
        this.projectYield = projectYield;
    }

    public double getProjectAwardYield() {
        return projectAwardYield;
    }

    public void setProjectAwardYield(double projectAwardYield) {
        this.projectAwardYield = projectAwardYield;
    }

    public int getProjectPeriod() {
        return projectPeriod;
    }

    public void setProjectPeriod(int projectPeriod) {
        this.projectPeriod = projectPeriod;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    private int step;//

    public String getOughtedTime() {
        return oughtedTime;
    }

    public void setOughtedTime(String oughtedTime) {
        this.oughtedTime = oughtedTime;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getRealTime() {
        return realTime;
    }

    public void setRealTime(String realTime) {
        this.realTime = realTime;
    }

    public String getCapital() {
        if (StringUtils.isEmpty(capital)) {
            return "0.00";
        }
        return capital;
    }

    public void setCapital(String capital) {
        this.capital = capital;
    }

    public String getRealCapital() {
        if (StringUtils.isEmpty(realCapital)) {
            return "0.00";
        }
        return realCapital;
    }

    public void setRealCapital(String realCapital) {
        this.realCapital = realCapital;
    }

    public String getInterest() {
        if (StringUtils.isEmpty(interest)) {
            return "0.00";
        }
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getRealInterest() {
        if (StringUtils.isEmpty(realInterest)) {
            return "0.00";
        }
        return realInterest;
    }

    public void setRealInterest(String realInterest) {
        this.realInterest = realInterest;
    }

    public String getOverdueFee() {
        if (StringUtils.isEmpty(overdueFee)) {
            return "0.00";
        }
        return overdueFee;
    }

    public void setOverdueFee(String overdueFee) {
        this.overdueFee = overdueFee;
    }

    public String getRemainCapital() {
        if (StringUtils.isEmpty(remainCapital)) {
            return "0.00";
        }
        return remainCapital;
    }

    public void setRemainCapital(String remainCapital) {
        this.remainCapital = remainCapital;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }
}
